export const TipMap = {
  200: {
    type: 'success', // toast 类型
    show: false, // 是否展示 toast
    description: '成功', // 代码含义
  },
  10400: {
    type: 'error',
    show: true,
    description: '参数非法，请重新输入',
  },
  10401: {
    type: 'error',
    show: false,
    description: '用户权限不足',
  },
  10500: {
    type: 'error',
    show: false,
    description: '操作失败',
  },
  10501: {
    type: 'error',
    show: false,
    description: '系统故障',
  },
  10502: {
    type: 'error',
    show: true,
    description: '操作失败，请稍后重试',
  },
  10503: {
    type: 'error',
    show: false,
    description: '获取不到IP',
  },
  10504: {
    type: 'error',
    show: false,
    description: '服务器出错',
  },
  20400: {
    type: 'error',
    show: true,
    description: '验证码为空、不匹配或失效',
  },
  20401: {
    type: 'error',
    show: true,
    description: '用户未登录',
  },
  20402: {
    type: 'error',
    show: true,
    description: '该用户权限不足',
  },
  20403: {
    type: 'error',
    show: true,
    description: '邮箱、微信号、账户或手机号已存在',
  },
  20404: {
    type: 'error',
    show: true,
    description: '账号或密码错误',
  },
  30400: {
    type: 'error',
    show: true,
    description: '课程、直播或测试不存在',
  },
  30401: {
    type: 'error',
    show: true,
    description: '测试未开始',
  },
  30402: {
    type: 'error',
    show: true,
    description: '测试次数已用完',
  },
  30403: {
    type: 'error',
    show: true,
    description: '课程余额不足',
  },
  40400: {
    type: 'error',
    show: true,
    description: '余额不足',
  },
  40401: {
    type: 'error',
    show: true,
    description: '群组、协会或团队不存在',
  },
  40402: {
    type: 'error',
    show: true,
    description: '你已不在该群组',
  },
  50400: {
    type: 'error',
    show: true,
    description: '该用户不存在',
  },
  50401: {
    type: 'error',
    show: true,
    description: '部门还有员工，无法删除',
  },
}
